#!/bin/bash

# For the develop branch, bump hipblas version and rocblas/rocsolver dependency versions

OLD_HIPBLAS_VERSION="1.1.0"
NEW_HIPBLAS_VERSION="2.0.0"

OLD_MINIMUM_ROCBLAS_VERSION="3.1.0"
NEW_MINIMUM_ROCBLAS_VERSION="4.0.0"

OLD_MINIMUM_ROCSOLVER_VERSION="3.23.0"
NEW_MINIMUM_ROCSOLVER_VERSION="3.24.0"

OLD_SO_VERSION="hipblas_SOVERSION 1.1"
NEW_SO_VERSION="hipblas_SOVERSION 2.0"

sed -i "s/${OLD_HIPBLAS_VERSION}/${NEW_HIPBLAS_VERSION}/g" CMakeLists.txt
sed -i "s/${OLD_MINIMUM_ROCBLAS_VERSION}/${NEW_MINIMUM_ROCBLAS_VERSION}/g" CMakeLists.txt
sed -i "s/${OLD_MINIMUM_ROCSOLVER_VERSION}/${NEW_MINIMUM_ROCSOLVER_VERSION}/g" CMakeLists.txt
sed -i "s/${OLD_SO_VERSION}/${NEW_SO_VERSION}/g" library/CMakeLists.txt
